<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
    
    <head>
        <meta charset="UTF-8">
        <title>Remote Connection</title>
        <link rel="stylesheet" th:href="@{/css/font.css}">
        <link rel="stylesheet" th:href="@{/css/xadmin.css}">
        <script type="text/javascript" th:src="@{/layui/layui.js}"></script>
        <script type="text/javascript" th:src="@{/js/xadmin.js}"></script>
    </head>
    <body>
        <div class="layui-fluid">
            <div class="layui-row">
                <form class="layui-form">
                    <div class="layui-form-item">
                        <label for="ftpHost" class="layui-form-label">
                            <span class="x-red">*</span>IP地址
                        </label>
                        <div class="layui-input-inline">
                            <input type="text" id="ftpHost" name="ftpHost" required="" lay-verify="required"
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="port" class="layui-form-label">
                            <span class="x-red"></span>端口号
                        </label>
                        <div class="layui-input-inline">
                            <input type="text" id="port" placeholder="默认21" name="port"
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="userName" class="layui-form-label">
                            <span class="x-red">*</span>用户名
                        </label>
                        <div class="layui-input-inline">
                            <input type="text" id="userName" name="userName" required="" lay-verify="required"
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label for="pwd" class="layui-form-label">
                            <span class="x-red">*</span>密码
                        </label>
                        <div class="layui-input-inline">
                            <input type="password" id="pwd" name="pwd" required="" lay-verify="required"
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>



                    <div class="layui-form-item">
                        <label for="ftpType" class="layui-form-label">
                            <span class="x-red">*</span>连接方式
                        </label>
                        <div class="layui-input-inline">
                            <select name="ftpType" id="ftpType" lay-verify="">
                                <option th:each="conn:${connectionTypeList}" th:value="${conn}" th:text="${conn}"></option>
                            </select>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label for="timedOut" class="layui-form-label">
                            <span class="x-red"></span>超时时间
                        </label>
                        <div class="layui-input-inline">
                            <input type="text" id="timedOut" placeholder="默认5000" name="timedOut"
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">
                            <span class="x-red">*</span>存活时间
                        </label>

                        <div class="layui-input-inline">
                            <input type="text" name="survival" required="" lay-verify="required"
                                   autocomplete="off" class="layui-input">
                        </div>

                        <div class="layui-input-inline">
                            <select lay-verify="" name="survivalUnit">
                                <option value="s">秒</option>
                                <option value="h">时</option>
                                <option selected value="d">天</option>
                            </select>
                        </div>

                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">
                        </label>
                        <button  class="layui-btn" lay-filter="add" lay-submit="">
                            增加
                        </button>
                    </div>


                </form>
            </div>
        </div>
        <script type="module" th:src="@{/js/admin/admin-add.js}"></script>
    </body>

</html>
